package club.ruanx.movie.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @author 阮胜
 * @date 2018/11/11 20:36
 */
@Data
public class MovieCommentParam {

    private String id;

    private String userId;

    @NotEmpty
    private String movieId;

    @NotEmpty
    private String title;

    @Min(0)
    @Max(10)
    private Float rate;

    @NotEmpty
    private String content;
}
